package cn.lanqiao.mapper;

import cn.lanqiao.entity.User;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface UserMapper {

    @Select("select * from sys_user limit 5")
    List<User> queryUserList();

    @Insert("insert into sys_user (user_name,password) values (#{userName},#{password})")
    void insert(User user);
}
